package com.cosmoplat.mom.iot.client.api.param;

import com.cosmoplat.mom.iot.client.IotApi;
import com.cosmoplat.mom.iot.client.constants.IotApis;
import com.cosmoplat.mom.iot.client.http.HttpRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 根据设备ID查询数据项列表参数
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class GetDataItemListByDeviceCodeParam extends BaseIotParam {

    /**
     * 设备主键
     */
    private String deviceCodes;

    
    @Override
    public IotApi api() {
        return IotApis.DATA_ITEM_LIST_BY_DEVICE_CODE;
    }

    @Override
    public HttpRequest customizeHttpRequest(HttpRequest request) {
        return request.addQueryParam(this);
    }
}